//
//  SATransferListMdoel.m
//  SAP
//
//  Created by 中矿科技有限公司 on 17/9/14.
//  Copyright © 2017年 中矿科技有限公司. All rights reserved.
//

#import "SATransferListMdoel.h"

@implementation SATransferListMdoel

+(NSArray *)getTransferListfromData:(NSData *)data{
    NSDictionary *dict =[NSJSONSerialization JSONObjectWithData:data options:NSJSONReadingMutableContainers error:nil];
    NSMutableArray *result =[NSMutableArray array];
    
    
    if (![dict[@"result"] isKindOfClass:[NSDictionary class]]) {
        return result;
    }
    if (![dict[@"result"][@"items"] isKindOfClass:[NSArray class]]) {
        return result;
    }
    for (NSDictionary * typeDict in dict[@"result"][@"items"] ) {
        SATransferListMdoel *model =[SATransferListMdoel mj_objectWithKeyValues:typeDict];
        [result addObject:model];
    }
    
    return result;
}

@end
